<!DOCTYPE html>
<html>

<head lang="en">
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<title>用友审计-招投标信息监控系统</title>
	<link rel="stylesheet" href="static/css/bootstrap.min.css" />
	<link rel="stylesheet" href="static/css/bootstrap-theme.min.css" />
	<link rel="stylesheet" href="static/css/bootstrap-table.min.css" />
</head>

<body>
	<div class="container">
		<div id="toolbar" class="fixed-table-toolbar" style="white-space: nowrap;">
			<h2>用友审计-招投标信息监控系统</h2>
			<form action="index" method="get">
				<input name="text" style="width: 45%;display: inline-block;" placeholder="请输入搜索内容" value="{{text}}" class="form-control"
				/> &nbsp;来源:
				<select name="source" style="display: inline-block;width: 25%;padding-left: 0px;" class="form-control">
					{% for item in sources %}
					{% if item.name == source %}
					<option selected="selected" value="{{item.name}}">{{item.index}} {{item.name}}</option>
					{% else %}
					<option value="{{item.name}}">{{item.index}} {{item.name}}</option>
					{% endif %}
					{% endfor %}
				</select>
				&nbsp;时间:
				<select name="day" style="display: inline-block;width: 15%;padding-left: 0px;" class="form-control">
					<option {% if day == '0' %}selected="selected"{% endif %} value="0">全部</option>
					<option {% if day == '1' %}selected="selected"{% endif %} value="1">最近1天</option>
					<option {% if day == '3' %}selected="selected"{% endif %} value="3">最近3天</option>
					<option {% if day == '7' %}selected="selected"{% endif %} value="7">最近1周</option>
					<option {% if day == '30' %}selected="selected"{% endif %} value="30">最近1月</option>
					<option {% if day == '92' %}selected="selected"{% endif %} value="92">最近3月</option>
					<option {% if day == '182' %}selected="selected"{% endif %} value="182">最近半年</option>
				</select>
				<input type="submit" value="检索" class="btn btn-primary" />
			</form>
		</div>
		<div style="margin-top:15px;">
			<table id="table" data-toggle="table" data-click-to-select="true" data-row-style="rowStyle" data-height="600">
				<thead>
					<tr>
						<th>ID</th>
						<th>标题</th>
						<th>数据来源</th>
						<th>入库时间</th>
						<!--th>是否已经发送邮件</th-->
					</tr>
				</thead>
				{% for item in items %}
				<tr>
					<td>{{item.id}}</td>
					<td><a href="{{item.url}}" target="_blank">{{item.title}}</a></td>
					<td>{{item.source}}</td>
					<td>{{item.create_time}}</td>
					<!--td>{{item.processed}}</td-->
				</tr>
				{% endfor %}
			</table>
		</div>
		<div>
			<nav aria-label="Page navigation">
				<ul class="pagination">
					<li>
						<a href="{{firsturl}}" aria-label="Previous">
							<span aria-hidden="true">&laquo;</span>
						</a>
					</li>
					{% for pg in pgs %} {% if pg.active %}
					<li class="active"><a href="{{pg.url}}">{{pg.text}}</a></li>
					{% else %}
					<li><a href="{{pg.url}}">{{pg.text}}</a></li>
					{% endif %} {% endfor %}
					<li>
						<a href="{{lasturl}}" aria-label="Next">
							<span aria-hidden="true">&raquo;</span>
						</a>
					</li>
					<li><span>Total: {{total}}</span></li>
				</ul>
			</nav>
		</div>
	</div>
	<div style="width: 200px;margin: 0 auto;">&copy;用友审计 2016</div>
	<div style="float: right;"><a href="https://git.oschina.net/sunnytu/crawler4zb" target="_blank">Source Code</a>&nbsp;&nbsp;<a href="./admin">管理</a></div>
	<script src="static/js/jquery-2.1.3.min.js"></script>
	<script src="static/js/bootstrap.min.js"></script>
	<script src="static/js/bootstrap-table.min.js"></script>
	<script src="static/js/bootstrap-table-zh-CN.min.js"></script>
	<script>
    </script>
</body>

</html>